package com.base.entity.bo;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value="biz_unit" )
public class OrganizationBo {
    private static final long serialVersionUID = 1L;

    @TableId(value = "ID",type= IdType.AUTO)
    public String id;

    @Excel(name="单位名称")
    @TableField("NAME")
    public String name;

    @Excel(name="单位类型")
    @TableField("typeName")
    public String typeName;

    @Excel(name="负责人")
    @TableField("CHARGER")
    public String agerName;

    @TableField("count")
    public String count;

    @Excel(name="联系电话")
    @TableField("TEL")
    public String tel;

    @Excel(name="联系人")
    @TableField("LINK_MAN")
    public String linkMan;

    @Excel(name="简介")
    @TableField("INTRO")
    public String intro;

    @Excel(name="备注")
    @TableField("STANDBY1")
    public String standBY1;

//    @Excel(name="成立日期")
    @TableField("UNIT_CREATE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date unitCreateDate;

    @Excel(name="排序号")
    @TableField("ORDER_ID")
    public String orderId;

    @TableField("UP_UNIT_ID")
    public String upUnitId;

    @TableField("UNIT_TYPE_ID")
    public String unitTypeId;

    @TableField("IS_EXIST")
    public Boolean isExist;

    @Excel(name="单位编号")
    @TableField("CODE")
    public String code;

    @TableField("IS_LEVEL")
    public String isLevel;

    @TableField("SUBJECT_ID")
    public String subjectId;

    @TableField("SUBJECT_CLASS_ID")
    public String subjectClassId;

    @TableField("IS_STATE")
    public String isState;

    @TableField("APPROVE")
    public String approve;

    @TableField(exist = false)
    public String oneName;

    @TableField(exist = false)
    public String[] idList;

    @TableField("first_level")
    public String firstLevel;
}
